/**   
 * @文件名称: CMSBaseColumnEntity.java
 * @类路径: com.tdcms.cms.manage.entity
 * @描述: TODO
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @时间：2013-7-12 下午02:42:41
 * @版本：V1.0   
 */

package com.lxj.cms.manage.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lxj.core.entity.SYSBaseEntity;

/**
 * @类功能说明：栏目
 * @类修改者：
 * @修改日期：
 * @修改说明：
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @创建时间：2013-7-12 下午02:42:41
 * @版本：V1.0
 */
@Entity
@Table(name = "cms_column")
public class CMSColumnEntity extends SYSBaseEntity {
	private static final long serialVersionUID = -8504593565732116459L;
	// 模型
	private CMSModelEntity model;
	// 上级栏目
	private CMSColumnEntity parent;
	// 栏目名称
	private String columenName;
	// 访问路径
	private String accessPath;
	// 标题
	private String coumenTitle;
	// 关键字
	private String keyWord;
	// 描述
	private String description;
	// 栏目模板
	private String columenTemplate;
	// 内容模板
	private String contentTemplate;
	// 栏目静态化
	private String staticColumn;
	// 内容静态化
	private String staticContent;
	// 显示 0是 1否 2新窗口打开
	private int hasView;
	// 文档标题图 ?
	// 终审级别
	private int finalLevel;
	// 审核后 ?
	private int auditd;
	// 评论权限 0关闭评论 1游客评论 2登录评论
	private int commentPermissions;
	// 浏览权限 ?
	private int browsePermissions;
	// 管理权限 ?
	private int managePermissions;

	@ManyToOne
	@JoinColumn(name = "modelId")
	public CMSModelEntity getModel() {
		return model;
	}

	public void setModel(CMSModelEntity model) {
		this.model = model;
	}

	@ManyToOne
	@JoinColumn(name = "parentId")
	public CMSColumnEntity getParent() {
		return parent;
	}

	public void setParent(CMSColumnEntity parent) {
		this.parent = parent;
	}

	public String getColumenName() {
		return columenName;
	}

	public void setColumenName(String columenName) {
		this.columenName = columenName;
	}

	public String getAccessPath() {
		return accessPath;
	}

	public void setAccessPath(String accessPath) {
		this.accessPath = accessPath;
	}

	public String getCoumenTitle() {
		return coumenTitle;
	}

	public void setCoumenTitle(String coumenTitle) {
		this.coumenTitle = coumenTitle;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getColumenTemplate() {
		return columenTemplate;
	}

	public void setColumenTemplate(String columenTemplate) {
		this.columenTemplate = columenTemplate;
	}

	public String getContentTemplate() {
		return contentTemplate;
	}

	public void setContentTemplate(String contentTemplate) {
		this.contentTemplate = contentTemplate;
	}

	public String getStaticColumn() {
		return staticColumn;
	}

	public void setStaticColumn(String staticColumn) {
		this.staticColumn = staticColumn;
	}

	public String getStaticContent() {
		return staticContent;
	}

	public void setStaticContent(String staticContent) {
		this.staticContent = staticContent;
	}

	public int getHasView() {
		return hasView;
	}

	public void setHasView(int hasView) {
		this.hasView = hasView;
	}

	public int getFinalLevel() {
		return finalLevel;
	}

	public void setFinalLevel(int finalLevel) {
		this.finalLevel = finalLevel;
	}

	public int getAuditd() {
		return auditd;
	}

	public void setAuditd(int auditd) {
		this.auditd = auditd;
	}

	public int getCommentPermissions() {
		return commentPermissions;
	}

	public void setCommentPermissions(int commentPermissions) {
		this.commentPermissions = commentPermissions;
	}

	public int getBrowsePermissions() {
		return browsePermissions;
	}

	public void setBrowsePermissions(int browsePermissions) {
		this.browsePermissions = browsePermissions;
	}

	public int getManagePermissions() {
		return managePermissions;
	}

	public void setManagePermissions(int managePermissions) {
		this.managePermissions = managePermissions;
	}

}
